<template>
  <div class="app">
    <router-view />
    <home-nav></home-nav>
  </div>
</template>

<script>
import homeNav from "./components/homeNav";

export default {
  methods: {},
  mounted: async function () {
    if (localStorage.user != undefined) {
      let userMes = JSON.parse(localStorage.user);
      this.$store.commit("setUser", userMes);
    }
  },
  components: {
    homeNav,
  },
};
</script>

<style lang="less">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.icon {
  width: 0.3rem;
  height: 0.3rem;
}
</style>
